package cn.com.cifi.mars.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * ESB推送日志表
 * </p>
 *
 * @author yyd
 * @since 2020-09-22
 */
@TableName("t_esb_push_log")
public class EsbPushLog implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 项目Id
     */
    private String projectId;
    /**
     * 签约计划版本Id
     */
    private String versionId;

    /**
     * 分期Id
     */
    private String stageId;

    /**
     * esb接口地址
     */
    private String url;

    /**
     * 推送系统
     */
    private String sys;

    /**
     * 推送内容
     */
    private String pushContent;

    /**
     * 返回内容
     */
    private String returnContent;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 调用结果 0:成功 1:失败 默认是0
     */
    private Integer isSuccess;

    /**
     * 失败次数
     */
    private Integer failTime;
    
    private Integer type;

    public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
    
    public String getProjectId() {
		return projectId;
	}

	public void setProjectId(String projectId) {
		this.projectId = projectId;
	}

	public String getVersionId() {
        return versionId;
    }

    public void setVersionId(String versionId) {
        this.versionId = versionId;
    }
    public String getStageId() {
        return stageId;
    }

    public void setStageId(String stageId) {
        this.stageId = stageId;
    }
    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }
    public String getSys() {
        return sys;
    }

    public void setSys(String sys) {
        this.sys = sys;
    }
    public String getPushContent() {
        return pushContent;
    }

    public void setPushContent(String pushContent) {
        this.pushContent = pushContent;
    }
    public String getReturnContent() {
        return returnContent;
    }

    public void setReturnContent(String returnContent) {
        this.returnContent = returnContent;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public Integer getIsSuccess() {
        return isSuccess;
    }

    public void setIsSuccess(Integer isSuccess) {
        this.isSuccess = isSuccess;
    }
    public Integer getFailTime() {
        return failTime;
    }

    public void setFailTime(Integer failTime) {
        this.failTime = failTime;
    }

    @Override
    public String toString() {
        return "EsbPushLog{" +
        "id=" + id +
        ", versionId=" + versionId +
        ", stageId=" + stageId +
        ", url=" + url +
        ", sys=" + sys +
        ", pushContent=" + pushContent +
        ", returnContent=" + returnContent +
        ", createTime=" + createTime +
        ", isSuccess=" + isSuccess +
        ", failTime=" + failTime +
        "}";
    }
}
